.datepicker-modal {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .6);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;

  .datepicker {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 1;
    font-size: 16px;
    text-align: center;
    font-family: arial, verdana, sans-serif;
    box-sizing: content-box;
    -webkit-font-smoothing: antialiased;
    user-select: none;
    background-color: #f7f7f7;

    .datepicker-header {
      padding: 0 .5em;
      min-height: 2.325em;
      line-height: 2.325em;
      font-size: 1.125em;
      color: rgb(59, 59, 59);
    }

    .datepicker-navbar {
      position: absolute;
      z-index: 2;
      top: 0;
      left: 0;
      width: 100%;
      padding: 0;
      border-bottom: 1px solid #f0f0f0;
      display: flex;
      justify-content: space-between;
      font-size: 0.8rem;
    }

    .datepicker-navbar-btn {
      height: 2.5em;
      line-height: 2.5em;
      float: right;
      padding: 0 0.525rem;
      cursor: pointer;
      color: #4b84f7;
    }

    .datepicker-navbar-btn-cancel {
      color: #999999;
    }

    .datepicker-content {
      display: flex;
      padding: .5em .25em;
    }

    .datepicker-col-1 {
      flex: 1;
      margin: 0;
    }

    .datepicker-viewport {
      height: 200px;
      position: relative;
      overflow: hidden;
      &:after {
        content: '';
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        pointer-events: none;
        background: linear-gradient(#f7f7f7, rgba(245, 245, 245, 0) 52%, rgba(245, 245, 245, 0) 48%, #f7f7f7);
      }
    }

    .datepicker-wheel {
      position: absolute;
      height: 40px;
      top: 50%;
      margin-top: -20px;
      width: 100%;
      border-top: 1px solid #dbdbdb;
      border-bottom: 1px solid #dbdbdb;
    }

    .datepicker-scroll {
      list-style-type: none;
      padding: 0;
      & > li {
        height: 40px;
        line-height: 40px;
        font-size: 1.375em;
        cursor: pointer;
      }
      & > li.disabled {
        color: rgb(191, 191, 191);
      }
    }
  }
}
